package work.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import work.service.IndexService;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

 // TODO 收藏，历史浏览
//  TODO 部署到linux服务器
// TODO 模糊搜索

// 中心控制器，分发功能
@Controller
public class IndexController {

    @Autowired
    private IndexService indexService;

    //进入首页
    @RequestMapping("/index")
    public String index() {
        indexService.test();
        return "index";
    }

}
